home *** CD-ROM | disk | FTP | other *** search
/ Crosscountry USA Photo Safari / Crosscountry USA Photo Safari.iso / Data / safari_usa / pak00_16bit_f.pk3 / loader.gl.p < prev   
Text File  |  2002-12-23  |  7KB  |  194 lines

  1. {
  2.  
  3.   ChildID = {
  4.     GuiAnimation("loader_background") {
  5.       AnimationID = "image/loader_background.pcx";      
  6.     },
  7.     GuiLoader("background") {
  8.       X = 0;
  9.       Y = 0;
  10.       state = 1;
  11.       ScriptID = Script {
  12.         @animate {
  13.           int state;
  14.           int CurrentFrame;
  15.           resid LoadAnim;
  16.  
  17.           LoadAnim = GuiSiblingByName("load_anim");
  18.           ResPropAlias(SELF,"state","state");
  19.           ResPropAlias(LoadAnim,"CurrentFrame","CurrentFrame");
  20.           
  21.  
  22.           if (state == 1) {
  23.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65589/*"loading dispatch"*/));
  24.             state += 1;
  25.             CurrentFrame += 1;
  26.             stop;
  27.           }
  28.           if (state == 2) {
  29.             ResByName("dispatch.gl");
  30.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65590/*"loading map"*/));
  31.             state += 1;
  32.             CurrentFrame += 1;
  33.             stop;
  34.           }
  35.           if (state == 3) {
  36.             ResByName("map.gl");
  37.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65591/*"loading country map"*/));
  38.             state += 1;
  39.             CurrentFrame += 1;
  40.             stop;
  41.           }
  42.           if (state == 4) {
  43.             ResByName("country_map.gl");
  44.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65592/*"loading expense report"*/));
  45.             state += 1;
  46.             CurrentFrame += 1;
  47.             stop;
  48.           }
  49.           if (state == 5) {
  50.             ResByName("expense.gl");
  51.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65593/*"loading photo album"*/));
  52.             state += 1;
  53.             CurrentFrame += 1;
  54.             stop;
  55.           }
  56.           if (state == 6) {
  57.             ResByName("photo_album.gl");
  58.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65594/*"loading travel log"*/));
  59.             state += 1;
  60.             CurrentFrame += 1;
  61.             stop;
  62.           }
  63.           if (state == 7) {
  64.             ResByName("travel_log.gl");
  65.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65595/*"loading truck dash"*/));
  66.             state += 1;
  67.             CurrentFrame += 1;
  68.             stop;
  69.           }
  70.           if (state == 8) {
  71.             ResByName("help.gl");
  72.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65596/*"loading tab: hunger"*/));
  73.             state += 1;
  74.             CurrentFrame += 1;
  75.             stop;
  76.           }
  77.           if (state == 9) {
  78.             ResByName("eat.tab");
  79.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65597/*"loading tab: fuel"*/));
  80.             state += 1;
  81.             CurrentFrame += 1;
  82.             stop;
  83.           }
  84.           if (state == 10) {
  85.             ResByName("fuel.tab");
  86.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65598/*"loading tab: load"*/));
  87.             state += 1;
  88.             CurrentFrame += 1;
  89.             stop;
  90.           }
  91.           if (state == 11) {
  92.             ResByName("load.tab");
  93.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65599/*"loading tab: maintenance"*/));
  94.             state += 1;
  95.             CurrentFrame += 1;
  96.             stop;
  97.           }
  98.           if (state == 12) {
  99.             ResByName("maintenance.tab");
  100.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65600/*"loading tab: postcards"*/));
  101.             state += 1;
  102.             CurrentFrame += 1;
  103.             stop;
  104.           }
  105.           if (state == 13) {
  106.             ResByName("postcard.tab");
  107.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65601/*"loading tab: system"*/));
  108.             state += 1;
  109.             CurrentFrame += 1;
  110.             stop;
  111.           }
  112.           if (state == 14) {
  113.             ResByName("system.tab");
  114.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65602/*"loading tab: timezone"*/));
  115.             state += 1;
  116.             CurrentFrame += 1;
  117.             stop;
  118.           }
  119.           if (state == 15) {
  120.             ResByName("timezone.tab");
  121.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65603/*"loading tab: sleep"*/));
  122.             state += 1;
  123.             CurrentFrame += 1;
  124.             stop;
  125.           }
  126.           if (state == 16) {
  127.             ResByName("sleep.tab");
  128.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65604/*"loading laptop"*/));
  129.             state += 1;
  130.             CurrentFrame += 1;
  131.             stop;
  132.           }
  133.           if (state == 17) {
  134.             ResByName("dash.gl");
  135.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65605/*"loading help sections"*/));
  136.             state += 1;
  137.             CurrentFrame += 1;
  138.             stop;
  139.           }
  140.           if (state == 18) {
  141.             ResByName("laptop.gl"); 
  142.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(65606/*"loading complete!"*/));
  143.             state += 1;
  144.             CurrentFrame += 1;
  145.             stop;
  146.           }
  147.           if (state == 19) {        
  148.             ResPropSetInt(GuiParent(SELF),"Hidden",TRUE);           
  149.            stop;
  150.           }
  151.                    
  152.         }
  153.       };
  154.     },
  155.     GuiAnimation("load_anim") {
  156.       AnimationID = "gui/main_menu/loader/loader.anm";
  157.       X = 120;
  158.       Y = 340;
  159.       State = STOPPED;
  160.     },
  161.       GuiTextInput("load_header") {
  162.       X = 320;
  163.       Y = 250;
  164.       Width = 185;
  165.       Height = 120;
  166.       WordWrap = TRUE;
  167.       InputDisabled = TRUE;
  168.       InputText = Mangle(65607/*"Loading"*/);
  169.       FontID = "font/verdana_white_bold_18.tf";
  170.     },
  171.       GuiTextInput("load_message") {
  172.       X = 160;
  173.       Y = 50;
  174.       Width = 330;
  175.       Height = 300;
  176.       WordWrap = TRUE;
  177.       InputDisabled = TRUE;
  178.       FontID = "font/verdana_white_bold_18.tf";
  179.       InputText = Mangle(65608/*"You are a wildlife photographer. Your mission is to drive around the country and take pictures of endangered animals. The pictures will remind people to protect these animals."*/);
  180.     },
  181.       GuiTextInput("load_status") {
  182.       X = 350;
  183.       Y = 280;
  184.       Width = 185;
  185.       Height = 120;
  186.       WordWrap = TRUE;
  187.       InputDisabled = TRUE;
  188.       FontID = "font/tab_w_on_g.tf";
  189.      }
  190.  
  191.  
  192.   };
  193. }
  194.